import random
from maopao import bubble_sort
def generate_and_sort(min_num=1,max_num=100,num_count=10):
    arr = [random.randint(min_num,max_num) for _ in range(num_count)]
    sorted_arr = bubble_sort(arr)
    return sorted_arr
